import minRequest from "@/config/minRequest.js";
const url = "/salesman";

/**
 * 饼图
 */
export const analyzeCustomerManagementStars = (data) =>
	minRequest.post(
		url + `/customerCentre/analyzeCustomerManagementStars`,
		data || {}
	);

/**
 * 饼图
 */
export const addCustomersInTheTimeFrame = (data) =>
	minRequest.post(
		url + `/customerCentre/addCustomersInTheTimeFrame`,
		data || {}
	);

/**
 * 客户成交量
 */
export const getOrderList = (data) =>
	minRequest.post(url + `/analyze/getOrderList`, data || {});

/**
 * 业务员小程序 请求健康平台 统计分析-客户服务
 */
export const toHealthForServiceLog = (data) =>
	minRequest.post(url + `/analyze/toHealthForServiceLog`, data || {});


/**
 * /customerCentre/getTopEntries
 **/
export const getTopEntries = (data) => minRequest.get(url + `/customerCentre/getTopEntries`);